enum LightColor {red, green, yellow}
  
main(){
  LightColor c0 = LightColor.green;
  // c0 = 1;      //编译时错误

  print(c0 == 1);   //false
}